import java.io.File;
import java.io.IOException;


public class FileDemo {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) throws IOException {
		File parent = new File("src");
		File f = new File(parent,"none1");
		System.out.println(f.delete());
		//System.out.println(f.createNewFile());
		System.out.printf("name %s%n", f.getName());
		System.out.printf("parent %s%n", f.getParent());
		System.out.printf("path %s%n", f.getPath());
		System.out.printf("is absolute %s%n", f.isAbsolute());
		System.out.printf("absolute %s%n", f.getAbsolutePath());
		System.out.printf("can read %s%n", f.canRead());
		System.out.printf("can write %s%n", f.canWrite());
		System.out.printf("can execute %s%n", f.canExecute());
		System.out.printf("exists %s%n", f.exists());
		System.out.printf("is dir %s%n", f.isDirectory());
		System.out.printf("is file %s%n", f.isFile());
		System.out.printf("is hidden %s%n", f.isHidden());
		System.out.printf("last modified %s%n", f.lastModified());
		System.out.printf("length %s%n", f.length());
		System.out.printf("total space %s%n", f.getTotalSpace());
		System.out.printf("free space %s%n", f.getFreeSpace());
		System.out.printf("usable space %s%n", f.getUsableSpace());
		
		//File.listRoots()
		// createFile
		// delete boolean
		// deleteOnExit
		
		// mkdir boolean
		// mkdirs boolean
		
		File.createTempFile("ivo", "ivo", new File("src"));
	}

}
